//
//  HDRCloud.h
//  MyClouds
//
//  Created by sarah doo on 13-8-7.
//  Copyright (c) 2013年 sarah doo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HDRCloud : NSObject

@property (nonatomic, retain)NSString *signture;
@property (nonatomic, retain)NSString *version;
@property (nonatomic, assign)int crc;
@property (nonatomic, retain)NSString *cmd;
@property (nonatomic, assign)int length;
@property (nonatomic, retain)NSData *HDRData;
@property (nonatomic, assign)int receiveCRC;
- (id)init;

- (NSData *)changeToDate:(NSArray *)datas;

int CRCTest(char *p, int length);

- (int)byteToInt:(NSData *)p;

- (NSString *)dataToString:(NSData *)data;

- (BOOL)verifyCRC:(NSData *)data;




@end
